package com.bwie.remote.factory;

import com.bwie.common.domain.Users;
import com.bwie.common.domain.response.UserResponse;
import com.bwie.common.result.Result;
import com.bwie.remote.UserRemote;
import org.springframework.cloud.openfeign.FallbackFactory;

public class UserRemoteImpl implements FallbackFactory<UserRemote> {
    @Override
    public UserRemote create(Throwable cause) {
        return new UserRemote() {
            @Override
            public Result<Users> login(String tel) {
                return Result.error("服务调用失败");
            }
        };
    }
}
